/**************************************************************************************
 *  Copyright (c)  2010  Leszek Karcz.
 *  Permission is granted to copy, distribute and/or modify this document
 *  under the terms of the GNU Free Documentation License, Version 1.3
 *  or any later version published by the Free Software Foundation;
 *  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 *  A copy of the license is included in the section entitled "GNU
 *  Free Documentation License". 
 **************************************************************************************/
package data.tileables;

/**************************************************************************************
 * Author(s): Leszek Karcz
 * Base structure for all non-controllable elements that can be put inside a tile
 **************************************************************************************/
public abstract class Doodad extends Tileable
{
	private boolean passable=true;
	/**************************************************************************************
	 * Author(s): Leszek Karcz
	 * Doodad constructor
	 **************************************************************************************/
	public Doodad()
	{
		super();
		this.setType("Doodad");
	}

	/**************************************************************************************
	 * Author(s): Leszek Karcz
	 * returns whether of the doodad is passable
	 **************************************************************************************/
	public boolean isPassable()
	{
		return this.passable;
	}
	
	/**************************************************************************************
	 * Author(s): Leszek Karcz
	 * sets the passable state of the doodad
	 **************************************************************************************/
	protected void setPassable(boolean passable)
	{
		this.passable=passable;
	}
}